
// psyche.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "psycheApp.h"
#include "psycheDlg.h"
#include "Application.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CpsycheApp

BEGIN_MESSAGE_MAP(CpsycheApp, CWinAppEx)
	ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
END_MESSAGE_MAP()


// CpsycheApp construction

CpsycheApp::CpsycheApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}
CpsycheApp::~CpsycheApp()
{
	delete m_dlg;
}

// The one and only CpsycheApp object

CpsycheApp theApp;


// CpsycheApp initialization

BOOL CpsycheApp::InitInstance()
{
	CWinAppEx::InitInstance();

	// Standard initialization
	// If you are not using these features and wish to reduce the size
	// of your final executable, you should remove from the following
	// the specific initialization routines you do not need
	// Change the registry key under which our settings are stored
	// TODO: You should modify this string to be something appropriate
	// such as the name of your company or organization
	SetRegistryKey(_T("Local AppWizard-Generated Applications"));

	sApplication->init();
	m_dlg = new CpsycheDlg;
	m_dlg->Create(IDD_PSYCHE_DIALOG);
	m_pMainWnd = m_dlg;
	return TRUE;
}
BOOL CpsycheApp::OnIdle(LONG lCount)
{
	sApplication->run();
	return TRUE;
}